package com.atguigu.spzx.cart.client;

import com.atguigu.spzx.model.entity.cart.CartInfo;
import com.atguigu.spzx.model.vo.common.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "service-cart")
public interface CartClient {
    @Operation(summary = "删除用户购物车中选中的购物项")
    @DeleteMapping("/api/order/cart/auth/deleteCheckedCartInfo")
    public Result deleteCheckedCartInfo();
    @Operation(summary = "查询下单用户选中的购物项列表")
    @GetMapping("/api/order/cart/auth/getAllCheckedCartInfo")
    public Result<List<CartInfo>> getAllCheckedCartInfo();
}
